<?php
/**
 * XiteCode Smarty Plugin: {DC id="id"}
 *
 * Use:<br />
 * <code>
 * {DC id="foo"}
 * </code>
 *
 * @param array $params
 * @param object $Smarty
 * @return string
 */

function smarty_function_DC($params, &$Smarty)
{
  if (empty($params['id'])) {
    return '{DC} You must supply an id.';
  }
  return XiteCode::getDynContent($params['id']);
}

?>
